package com.itcoon.demo.web.controller.i18n;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 *
 *
 * @author Athric Yu
 * 2024/11/27
 **/
@Data
public class ParameterReqVO {

    @NotNull(message = "{id.notNull}")
    private Long id;

    @NotBlank(message ="{name.notBlank}")
    @Pattern(regexp = "\\d{19}", message = "{name.length}")
    @Length(min = 10)
    private String name;
}
